const { postcss } = require('./src/config/pxtorem')
module.exports = {
      outputDir: "dist",
	  publicPath: '/tduck/dist',
	  lintOnSave: false,
	  productionSourceMap: false,
	  devServer: {
		disableHostCheck: true,
		open: true,
		port: 18888,
		// 开发环境默认开启反向代理，如果不需要请自行注释
		proxy: {
		  [process.env.VUE_APP_BASE_API]: {
			target: process.env.VUE_APP_BASE_URL,
			changeOrigin: true,
			pathRewrite: {
			  ['^' + process.env.VUE_APP_BASE_API]: ''
			}
		  }
		}
	  },
    css: {
        loaderOptions: {
            postcss: {
                plugins: [
                    postcss
                ]
            }
        }
    }
}